<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>北大青鸟办公自动化管理系统</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
  
  <body>
  <iframe src="head.jsp" width="100%" scrolling="no" frameborder="0" ></iframe>

  <div class="main"><div class="global-width">	
	  <iframe src="nav.jsp" scrolling="no" align="left" width="191px" height="400px"></iframe>
    <div class="action">
    	<div class="t">模块功能列表</div>
   		<div class="pages">
        	  <table width="90%" border="0" cellspacing="0" cellpadding="0" class="list">
                  <tr bgcolor="yellow">
                    <td>功能序号</td>
                    <td>所属模块</td>
                    <td>url</td>
                    <td>功能名</td>
                    <td>删除操作 </td>
                  </tr>
                  	<s:iterator value="functionList">
                  	<tr>
                    <td><s:property	value="id" /> </td>
                    <td><s:property value="module.modulename" /></td>
                    <td><s:property value="url" /></td>
                    <td>
                    <a	href='<s:url action="findSingleFunction"><s:param name="function.id" value="id" /></s:url>'> 
						<s:property value="functionname" />
					</a>
                    </td>
                    <td>
                    <a	href='<s:url action="removeFunction" ><s:param name="function.id" value="id"/></s:url>'> 
					删除
					 </a>
                    </td>
                  </tr>
                  	</s:iterator>
                  <tr>
                  	<td colspan="4">
                  		<img src="<%=request.getContextPath()%>/images/radio.gif" width="22" height="18" border="0" />
						<a href="<%=request.getContextPath()%>/page/function/newFunction.jsp">添加功能</a>
						<s:if test="#request.FNo==0">
							<img src="<%=request.getContextPath()%>/images/radio.gif" width="22" height="18" border="0" />
							<a	href='<s:url action="removeModule"><s:param name="module.id" value="module.id" /></s:url>'>删除所属模块</a>
						</s:if>
                  	</td>
                  </tr>
                   
                </table>        
       
        </div>
    </div>
</div></div>
 <iframe src="footer.jsp" width="100%" scrolling="no" frameborder="0" ></iframe>

  </body>
</html>
